
package com.assistant.core.modules.sys.domain.menu;

import com.assistant.framework.BaseDomain;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.*;

@EqualsAndHashCode(callSuper = true)
@Data
@Entity
@Table(name = "sys_menu")
public class Menu extends BaseDomain<Menu> {

    @Column(name = "path", columnDefinition = "varchar(255) comment '路径'")
    private String path;

    @Column(name = "component", columnDefinition = "varchar(255)")
    private String component;

    @Column(name = "redirect", columnDefinition = "varchar(255)")
    private String redirect;

    @Column(name = "always_show", columnDefinition = "bit comment '是否显示'")
    private Boolean alwaysShow;

    @Column(name = "icon", columnDefinition = "varchar(255)")
    private String icon;

    @Column(name = "title", columnDefinition = "varchar(255)")
    private String title;

}

